package com.chang.spring6.iocXML.FactoryBean;

import com.chang.spring6.iocXML.life.Water;
import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean<Water> {
    @Override
    public Water getObject() throws Exception {
        return new Water("这是一杯已经被定义的水>>>>>");
    }

    @Override
    public Class<?> getObjectType() {
        return Water.class;
    }
}
